

// 存储数据
const state = {
  nowIndex: localStorage.getItem("nowIndex")?JSON.parse(localStorage.getItem("nowIndex")):0,

  // 默认字号
  rem: 20,

  // 商品数据
  data:[
    {name:"马云",price:200},
    {name:"马化腾",price:300},
    {name:"王健林",price:100},
    {name:"李嘉诚 ",price:400},
  ],

  // token
  userToken: localStorage.getItem('userToken')?localStorage.getItem('userToken'):'',
  // 用户的登录信息
  userInfo: null,
  // 角色
  roles: [],
  isLoadRouters:false,
  // 全部路由
  routers: [],
  // 添加路由
  addRouters: [],
}

export default state